<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>doGet - Standard Library - Prails API Documentation</title>
    </head>
    <body>
        <h3 class="P4"><a name="_hyperlink"><span/></a>doGet</h3><h4 class="Heading_20_4"><a name="_Description_"><span/></a>Description:</h4>
        <p class="Text_20_body">
             Does a server-side get request to another server/site. HTTPS is supported.
        </p>
        <h4 class="Heading_20_4"><a name="_Syntax_"><span/></a>Syntax:</h4>
        <p class="Text_20_body">
            <code>String doGet($str_url)</code>
        </p>
        <table border="0" cellspacing="0" cellpadding="0" class="Table23">
            <colgroup>
                <col width="117"/><col width="626"/>
            </colgroup>
            <tr>
                <td style="text-align:left;width:2.683cm; " class="Table23_A1">
                    <p class="Table_20_Contents">
                        $str_url
                    </p>
                </td>
                <td style="text-align:left;width:14.316cm; " class="Table23_B1">
                    <p class="Table_20_Contents">
                         URL to fetch data from
                    </p>
                </td>
            </tr>
        </table>
        <p class="Text_20_body">
            <span class="T1">Returns:</span>
            A string containing the data fetched from the (other) server
        </p>
        <h4 class="Heading_20_4"><a name="_Example_"><span/></a>Example:</h4>
        <pre>
            echo doGet("http://www.google.com/#q=The+question+of+life+the+universe+and+everything");
        </pre>
        <p class="Text_20_body">
            This example will output Google's response on a search query. 
        </p>
    </body>
</html>
